import Vue from 'vue'
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)
import elementEn from 'element-ui/lib/locale/lang/en'
import elementZh from 'element-ui/lib/locale/lang/zh-CN'
import customen from './en'
import customzh from './zh'
export default new VueI18n({
  locale: localStorage.getItem('lang') || 'zh',
  messages: {
    zh: {
      morning: '早上好',
      goodDay: '祝你开心每一天',
      ...elementZh,
      ...customzh
    },
    en: {
      morning: 'Good Morning!',
      goodDay: 'have a good day',
      ...elementEn,
      ...customen
    }
  }
})
